import {get} from "../../utils/request";

export function clsfen(data){
    return get(`/dj/catelist`,data)
}

export function clsrecom(data){
    return get(`/dj/recommend`,data)
}

export function clsretype(categoryId,data){
    return get(`/dj/recommend/type?type=${categoryId}`,data)
}

// 需要登录 推荐歌单
export function recsongslist(id){
    return get(`/recommend/resource`,id)
}

// 需要登录 推荐歌曲
export function recsongs(id){
    return get(`/recommend/songs`,id)
}

// 获取歌曲播放地址
export const songsdetail = (id) => get("/song/url?id=" + id)

// 获取歌词
export const songsword = (id) => get("/lyric?id=" + id)

// 歌曲评论
export const gequpin = (id) => get("/comment/music?id=" + id)


// 用户信息接口
export function yonghu(data) {
    return get("/user/account", data);
}